package org.lanqiao.business;

import io.swagger.annotations.ApiOperation;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
@Controller
@RequestMapping("/slideshow")
public class IndexController {
    @Reference
    private IAdService adService;
    @RequestMapping("/index")
    @ApiOperation(value = "轮播图接口",notes = "index")
    public String index(Model model){
        List<Ad> indexList = adService.findByPosition("lbt");
        model.addAttribute("indexList",indexList);
        return "index";
    }
}
